package com.example.farmeri.pojo.vo;

import com.example.farmeri.data.config.ServiceConfig;

import retrofit2.Retrofit;

/**
 * Create by weiqishan on 2020/11/15.
 */
public class RetrofitC {

    private static Retrofit retrofit;

    public static Retrofit getInstance(){
        if (retrofit == null) {
            synchronized (RetrofitC.class){
                if (retrofit == null) {
                    retrofit = new Retrofit.Builder()
                            .baseUrl(ServiceConfig.url)
                            .build();
                }
            }
        }
        return retrofit;
    }


}




